package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by ghost on 2018/3/12.
 */
@Entity
@Table(name = "wpp_teg_measure_f", schema = "sor", catalog = "qmsprd")
@IdClass(WppTegMeasureFPK.class)
public class WppTegMeasureF {
    private String prodId;
    private String lotId;
    private String glassId;
    private String jgeCnt;
    private String slotId;
    private String sId;
    private String owner;
    private String opeId;
    private String eqptId;
    private String recipeId;
    private Timestamp procStart;
    private Timestamp procEnd;
    private String et;
    private Integer mPointCnt;
    private Integer pin;
    private String xCoord;
    private String yCoord;
    private String mItem;
    private BigDecimal mValue;
    private String fileUrl;
    private Timestamp dbTimestamp;
    private Timestamp etlTimestamp;
    private String realFlg;

    @Id
    @Column(name = "prod_id")
    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId;
    }

    @Basic
    @Column(name = "lot_id")
    public String getLotId() {
        return lotId;
    }

    public void setLotId(String lotId) {
        this.lotId = lotId;
    }

    @Id
    @Column(name = "glass_id")
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Id
    @Column(name = "jge_cnt")
    public String getJgeCnt() {
        return jgeCnt;
    }

    public void setJgeCnt(String jgeCnt) {
        this.jgeCnt = jgeCnt;
    }

    @Basic
    @Column(name = "slot_id")
    public String getSlotId() {
        return slotId;
    }

    public void setSlotId(String slotId) {
        this.slotId = slotId;
    }

    @Basic
    @Column(name = "s_id")
    public String getsId() {
        return sId;
    }

    public void setsId(String sId) {
        this.sId = sId;
    }

    @Basic
    @Column(name = "owner")
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    @Basic
    @Column(name = "ope_id")
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Basic
    @Column(name = "eqpt_id")
    public String getEqptId() {
        return eqptId;
    }

    public void setEqptId(String eqptId) {
        this.eqptId = eqptId;
    }

    @Basic
    @Column(name = "recipe_id")
    public String getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(String recipeId) {
        this.recipeId = recipeId;
    }

    @Basic
    @Column(name = "proc_start")
    public Timestamp getProcStart() {
        return procStart;
    }

    public void setProcStart(Timestamp procStart) {
        this.procStart = procStart;
    }

    @Id
    @Column(name = "proc_end")
    public Timestamp getProcEnd() {
        return procEnd;
    }

    public void setProcEnd(Timestamp procEnd) {
        this.procEnd = procEnd;
    }

    @Id
    @Column(name = "et")
    public String getEt() {
        return et;
    }

    public void setEt(String et) {
        this.et = et;
    }

    @Basic
    @Column(name = "m_point_cnt")
    public Integer getmPointCnt() {
        return mPointCnt;
    }

    public void setmPointCnt(Integer mPointCnt) {
        this.mPointCnt = mPointCnt;
    }

    @Basic
    @Column(name = "pin")
    public Integer getPin() {
        return pin;
    }

    public void setPin(Integer pin) {
        this.pin = pin;
    }

    @Basic
    @Column(name = "x_coord")
    public String getxCoord() {
        return xCoord;
    }

    public void setxCoord(String xCoord) {
        this.xCoord = xCoord;
    }

    @Basic
    @Column(name = "y_coord")
    public String getyCoord() {
        return yCoord;
    }

    public void setyCoord(String yCoord) {
        this.yCoord = yCoord;
    }

    @Id
    @Column(name = "m_item")
    public String getmItem() {
        return mItem;
    }

    public void setmItem(String mItem) {
        this.mItem = mItem;
    }

    @Basic
    @Column(name = "m_value")
    public BigDecimal getmValue() {
        return mValue;
    }

    public void setmValue(BigDecimal mValue) {
        this.mValue = mValue;
    }

    @Basic
    @Column(name = "file_url")
    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Basic
    @Column(name = "db_timestamp")
    public Timestamp getDbTimestamp() {
        return dbTimestamp;
    }

    public void setDbTimestamp(Timestamp dbTimestamp) {
        this.dbTimestamp = dbTimestamp;
    }

    @Basic
    @Column(name = "etl_timestamp")
    public Timestamp getEtlTimestamp() {
        return etlTimestamp;
    }

    public void setEtlTimestamp(Timestamp etlTimestamp) {
        this.etlTimestamp = etlTimestamp;
    }

    @Basic
    @Column(name = "real_flg")
    public String getRealFlg() {
        return realFlg;
    }

    public void setRealFlg(String realFlg) {
        this.realFlg = realFlg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WppTegMeasureF that = (WppTegMeasureF) o;

        if (prodId != null ? !prodId.equals(that.prodId) : that.prodId != null) return false;
        if (lotId != null ? !lotId.equals(that.lotId) : that.lotId != null) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (jgeCnt != null ? !jgeCnt.equals(that.jgeCnt) : that.jgeCnt != null) return false;
        if (slotId != null ? !slotId.equals(that.slotId) : that.slotId != null) return false;
        if (sId != null ? !sId.equals(that.sId) : that.sId != null) return false;
        if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false;
        if (opeId != null ? !opeId.equals(that.opeId) : that.opeId != null) return false;
        if (eqptId != null ? !eqptId.equals(that.eqptId) : that.eqptId != null) return false;
        if (recipeId != null ? !recipeId.equals(that.recipeId) : that.recipeId != null) return false;
        if (procStart != null ? !procStart.equals(that.procStart) : that.procStart != null) return false;
        if (procEnd != null ? !procEnd.equals(that.procEnd) : that.procEnd != null) return false;
        if (et != null ? !et.equals(that.et) : that.et != null) return false;
        if (mPointCnt != null ? !mPointCnt.equals(that.mPointCnt) : that.mPointCnt != null) return false;
        if (pin != null ? !pin.equals(that.pin) : that.pin != null) return false;
        if (xCoord != null ? !xCoord.equals(that.xCoord) : that.xCoord != null) return false;
        if (yCoord != null ? !yCoord.equals(that.yCoord) : that.yCoord != null) return false;
        if (mItem != null ? !mItem.equals(that.mItem) : that.mItem != null) return false;
        if (mValue != null ? !mValue.equals(that.mValue) : that.mValue != null) return false;
        if (fileUrl != null ? !fileUrl.equals(that.fileUrl) : that.fileUrl != null) return false;
        if (dbTimestamp != null ? !dbTimestamp.equals(that.dbTimestamp) : that.dbTimestamp != null) return false;
        if (etlTimestamp != null ? !etlTimestamp.equals(that.etlTimestamp) : that.etlTimestamp != null) return false;
        if (realFlg != null ? !realFlg.equals(that.realFlg) : that.realFlg != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = prodId != null ? prodId.hashCode() : 0;
        result = 31 * result + (lotId != null ? lotId.hashCode() : 0);
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (jgeCnt != null ? jgeCnt.hashCode() : 0);
        result = 31 * result + (slotId != null ? slotId.hashCode() : 0);
        result = 31 * result + (sId != null ? sId.hashCode() : 0);
        result = 31 * result + (owner != null ? owner.hashCode() : 0);
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (eqptId != null ? eqptId.hashCode() : 0);
        result = 31 * result + (recipeId != null ? recipeId.hashCode() : 0);
        result = 31 * result + (procStart != null ? procStart.hashCode() : 0);
        result = 31 * result + (procEnd != null ? procEnd.hashCode() : 0);
        result = 31 * result + (et != null ? et.hashCode() : 0);
        result = 31 * result + (mPointCnt != null ? mPointCnt.hashCode() : 0);
        result = 31 * result + (pin != null ? pin.hashCode() : 0);
        result = 31 * result + (xCoord != null ? xCoord.hashCode() : 0);
        result = 31 * result + (yCoord != null ? yCoord.hashCode() : 0);
        result = 31 * result + (mItem != null ? mItem.hashCode() : 0);
        result = 31 * result + (mValue != null ? mValue.hashCode() : 0);
        result = 31 * result + (fileUrl != null ? fileUrl.hashCode() : 0);
        result = 31 * result + (dbTimestamp != null ? dbTimestamp.hashCode() : 0);
        result = 31 * result + (etlTimestamp != null ? etlTimestamp.hashCode() : 0);
        result = 31 * result + (realFlg != null ? realFlg.hashCode() : 0);
        return result;
    }
}
